﻿namespace VividKit.Controls
{
	using System.Windows;

	/// <summary>
	/// Represents a service that provides properties and events to control the navigation of views for view models.
	/// </summary>
	static partial class NavigatorService
	{
		#region ExtraData (Attached DependencyProperty)

		private static readonly DependencyProperty ExtraDataProperty =
			DependencyProperty.RegisterAttached("ExtraData", typeof(object), typeof(NavigatorService),
				new PropertyMetadata(null));

		internal static object GetExtraData(DependencyObject o)
		{
			return o.GetValue(ExtraDataProperty);
		}

		internal static void SetExtraData(DependencyObject o, object value)
		{
			o.SetValue(ExtraDataProperty, value);
		}

		#endregion ExtraData (Attached DependencyProperty)
	}
}